package com.yz.crm.weixin.service;

/**
 * Created by DOVE on 2015/12/14.
 */


import com.yz.crm.weixin.model.token.AuthUserInfoJson;

/**
 * 获取用户微信信息服务
 */
public interface WechatUserService {
    /**
     * 通过openId 获取用户信息
     * @param openId
     * @return
     */
    public AuthUserInfoJson loadWechatUserInfoByOpenId(String openId, String serviceUrl);
    /**
     * 通过openId 获取用户信息
     * @param code
     * @return
     */
    public AuthUserInfoJson loadWechatUserInfoByCode(String code, String serviceUrl);
}
